package aoptwo;

import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Component
@Aspect
public class LogAspect {
      
       @Before(value = "execution(public * alpha.controllers..*.*(..))" )
       public void beforeShow() {
            System. out.println("before show." );
      }
      
       @After(value = "execution(public * alpha.controllers..*.*(..))" )
       public void afterShow() {
            System. out.println("after show." );
      }
      
}
